import request from "@/utils/request";
import type { ILoginParams,IRegister, ILoginModel} from "@/types/data";

//注册接口
export const register = (data:IRegister)=>
  request(
        '/h5/user/register',
        'POST',
        data
    )

// 登录接口
export const login = (data: ILoginParams) => 
 request<ILoginModel>(
       '/h5/user/login',
        'POST',
        data
    )